from flask import Flask, request
from src.project.RagTest.Rag import Rag

app = Flask(__name__)
rag = Rag()

@app.route('/message', methods=['POST'])
def message():
    question = request.form.get('question')
    file = request.files.getlist('file')
    return rag.start(question, file)

class RagTestProject:
    @staticmethod
    def start():
        app.run(debug=True)